package com.xuchang.mapper;

import com.xuchang.domain.SysPrivilege;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Set;

/**
* @author xuchang
* @description 针对表【sys_privilege(权限配置)】的数据库操作Mapper
* @createDate 2025-06-29 22:19:06
* @Entity com.xuchang.domain.SysPrivilege
*/
public interface SysPrivilegeMapper extends BaseMapper<SysPrivilege> {
    /**
     * 使用角色的ID 查询权限的id
     * @param roleId
     * @return
     */
    Set<Long> findPrivilegeByRoleId(Long roleId);
}




